package Persondata;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.annotations.Generated;

public class Person implements Serializable {
	private Integer idInternal;
	private String name;
	private String vorname;
	private int age;
	private String job;
	
	@SuppressWarnings("unused")
	private Person() {} // Hibernate standard constructor
	
	public Person(String name,String vorname){
		setName(name);
		setVorname(vorname);
	}
	public Person(String name,String vorname,int age){
		setName(name);
		setVorname(vorname);
		setAge(age);
	}
	public Person(String name,String vorname,int age,String job){
		setName(name);
		setVorname(vorname);
		setAge(age);
		setJob(job);
	}
	public Integer getIdInternal() {
		return idInternal;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE)
	public void setIdInternal(Integer idInternal) {
		this.idInternal = idInternal;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getVorname() {
		return vorname;
	}
	public void setVorname(String vorname) {
		this.vorname = vorname;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	
	

}
